package com.aaa.proxymode.homework;

import com.aaa.proxymode.demo02.Hire;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: 使用JDK动态代理实现加减乘除算法
 * @date 2022/11/9
 */
public class Test {
    public static void main(String[] args) {
        ProxyFactory proxy = new ProxyFactory(new AlgorithmIple());
        //代理对象
        Algorithm instance = proxy.getInstance();
        int add = instance.add(  2, 4);
        System.out.println(add);
    }
}
